Ext.define('PlaceInfo', 
{
        extend: 'Ext.data.Model',
        fields: [
            {name: 'placeName',     type: 'string'}
            ,{name: 'latitude',     type: 'string', mapping :'d'}
            ,{name: 'longitude', 	type: 'string', mapping :'e'}
        ]
});


Ext.define('VehicleInfo', 
{
        extend: 'Ext.data.Model',
        fields: [
            {name: 'id',     			type: 'string'}
            ,{name: 'vehicleName',     	type: 'string'}
            ,{name: 'vehicleNo',     	type: 'string'}
            ,{name: 'vehicleIcon',     	type: 'string'}
            ,{name: 'vehicleImei',     	type: 'string'}
        ]
});

var vehicleInfoStore = Ext.create('Ext.data.Store', 
{
    model: 'VehicleInfo'
	,proxy: 
    {
        type: 'ajax',
        url: 'getVehicleInfo'
    }
	,reader: 
	{
	    root: 'response',
	    type: 'json'
	}
    ,autoLoad: true
});

